/*******************************************************************************
 * Copyright (c) 2019, 2025 Lablicate GmbH.
 *
 * This program and the accompanying materials are made
 * available under the terms of the Eclipse Public License 2.0
 * which is available at https://www.eclipse.org/legal/epl-2.0/
 *
 * SPDX-License-Identifier: EPL-2.0
 * 
 * Contributors:
 * Philip Wenig - initial API and implementation
 *******************************************************************************/
package org.eclipse.chemclipse.pdfbox.extensions.elements;

import java.awt.Color;

public class LineElement extends AbstractElement<LineElement> {

	private Color color = Color.BLACK;
	private float lineWidth = 1.0f;
	private float x1 = 0.0f;
	private float y1 = 0.0f;

	public LineElement(float x, float y, float x1, float y1) {
		setX(x);
		setY(y);
		setX1(x1);
		setY1(y1);
	}

	public Color getColor() {

		return color;
	}

	public LineElement setColor(Color color) {

		this.color = color;
		return this;
	}

	public float getLineWidth() {

		return lineWidth;
	}

	public LineElement setLineWidth(float lineWidth) {

		this.lineWidth = lineWidth;
		return this;
	}

	public float getX1() {

		return x1;
	}

	public LineElement setX1(float x1) {

		this.x1 = x1;
		return this;
	}

	public float getY1() {

		return y1;
	}

	public LineElement setY1(float y1) {

		this.y1 = y1;
		return this;
	}
}
